<template>
  <div>
    <van-sticky>
      <div class="tit">
        <van-icon size="26px" name="arrow-left" @click="$router.go(-1)" />
        <div><span>宝贝评价</span></div>
      </div>
    </van-sticky>
    <div class="score">
      <p>评分<span>99%</span>好评</p>
      <div class="score-b">
        <div class="active">全部</div>
        <div>最新</div>
        <div>追评</div>
        <div>有图</div>
        <div>好评</div>
      </div>
    </div>
    <evaluateComment></evaluateComment>
    <evaluateComment></evaluateComment>
    <evaluateComment></evaluateComment>
    <evaluateComment></evaluateComment>
  </div>
</template>

<script>
import evaluateComment from '@/components/evaluateComment.vue';
export default {
  components: { evaluateComment }
}
</script>

<style lang="scss" scoped>
.tit {
  font-size: 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  padding: 8px 10px;
  background-color: #fff;

  div {
    margin: 0 auto;
    font-weight: 800;
    font-family: 'Arial Negreta', 'Arial';
  }
}

.score {
  p {
    padding: 8px 10px;
  }

  .score-b {
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;

    div {
      padding: 5px 15px;
      border-radius: 10px;
      font-family: 'Arial Negreta', 'Arial';
      background-color: #f6f6f6;
      border: 1px solid transparent;

      &.active {
        border-color: rgba(255, 42, 58, 1);
        background-color: #fff;
      }
    }
  }
}
</style>